#include "widget.h"
#include "ui_widget.h"
#include <QProgressBar>
#include <QDebug>



Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    dialog=new QDialog(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    static bool flag=true;
    if(flag==true)
    {
        dialog->show();
        flag=false;
    }
    else
    {
        dialog->hide();
        flag=true;
    }
}
